package eg12_3;

public class main {
    public static void main(String[] args) {
        System.out.println("住行程开始运行");
        subthread sb1 = new subthread();
        sb1.setName("subthread");
        sb1.setName("sb1");
        sb1.start();
        try{
            Thread.sleep(1000);

        } catch (InterruptedException e) {
            System.out.println(e.getMessage());
        }
        System.out.println("主线程运行结束");
    }
}
